//Source file: D:\\test\\com\\ce\\pms\\custservice\\model\\ReturnVisitItemDO.java

package com.ce.pms.system.custservice.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:问卷题目(别名回访项目) 关联数据表:CE_RETURN_VISIT_ITEM
 *
 * @author 黄彦军 创建日期：2008-12-8
 */
@Entity
@Table(name = "CE_RETURN_VISIT_ITEM")
public class ReturnVisitItemDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "RETURN_VISIT_ITEM_ID", nullable = false)
	private Long keyword;

	/**
	 * 回访项目名称
	 */
	@Column(name = "NAME", length = 20, nullable = false)
	private String name;

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 200)
	private String remark;

	/**
	 * 序号
	 */
	@Column(name = "SEQUENCE")
	private Short sequence;

	/**
	 * 有效性 1有效;0无效
	 */
	@Column(name = "VALIDITY", length = 1, nullable = false)
	private String validity;

	/**
	 * 类型: 001选择题类型;002发挥题类型
	 */
	@Column(name = "CLAZZ", length = 3, nullable = false)
	private String clazz;

	/**
	 * 系统信息
	 */
	@Embedded
	private SysInfo sysInfo;

	/**
	 * 选项列表,针对选择型问卷题目
	 */
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "returnVisitItemDO")
	private Set<OptionsDef> optionsDefSet = new HashSet<OptionsDef>();

	/**
	 * @roseuid 4937AB3201E4
	 */
	public ReturnVisitItemDO() {

	}

	/**
	 * @param keyword
	 * @return com.ce.pms.custservice.model.ReturnVisitItemDO
	 * @roseuid 492BA0BC0109
	 */
	public ReturnVisitItemDO(Long keyword) {
		this.keyword = keyword;
	}

	/**
	 * @param name
	 * @param remark
	 * @param sequence
	 * @param validity
	 * @return com.ce.pms.custservice.model.ReturnVisitItemDO
	 * @roseuid 492BA05403B9
	 */
	public ReturnVisitItemDO(String name, String remark, Short sequence,
			Boolean validity) {

	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<OptionsDef> getOptionsDefSet() {
		return optionsDefSet;
	}

	public void setOptionsDefSet(Set<OptionsDef> optionsDefSet) {
		this.optionsDefSet = optionsDefSet;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Short getSequence() {
		return sequence;
	}

	public void setSequence(Short sequence) {
		this.sequence = sequence;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

	public String getValidity() {
		return validity;
	}

	public void setValidity(String validity) {
		this.validity = validity;
	}
}
